package ru.nsu.ccfit.kalah.game;

/**
 * Created with IntelliJ IDEA.
 * User: zheka
 * Date: 19.12.12
 * Time: 13:08
 * To change this template use File | Settings | File Templates.
 */
public class ShiftAllStonesAnimation extends AbstractMoveAnimation {
    int fromFirst;
    int fromSecond;
    int to;

    public ShiftAllStonesAnimation(int fromFirst, int fromSecond, int to) {
        this.fromFirst = fromFirst;
        this.fromSecond = fromSecond;
        this.to = to;
    }

    @Override
    public void animate(MoveAnimator animator) {
        animator.moveAll(fromFirst, fromSecond, to);
    }
}
